<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Cartlist extends Model
{
    protected $table = 'cartlist';
    protected $primaryKey = 'id';

    protected $fillable = ['username','pid'];

    public function cartInfo(){
        return $this->hasMany(Products::class,'pid','pid');
    }
}
